﻿using System.Windows.Controls;
using Mammoth.Factories;

namespace Mammoth.Views.Message
{
    /// <summary>
    /// Interaction logic for MessageView.xaml
    /// </summary>
    public partial class MessageView : UserControl
    {
        public MessageView(ITypeFactory viewFactory)
        {
            InitializeComponent();
            var ib = viewFactory.Create<MessageList>();
            ib.MessageType = Entities.GTalkMessageType.Inbox;
            InboxContainer.Children.Add(ib);
            var ob = viewFactory.Create<MessageList>();
            ob.MessageType = Entities.GTalkMessageType.Outbox;
            OutboxContainer.Children.Add(ob);
        }
    }
}
